package com.whisper.hfdp.design.strategy.duck;

import com.whisper.hfdp.design.strategy.duck.fly.FlyRocketPowered;

public class MiniDucksSimulator {
    public static void main(String[] args) {
        Duck millard = new MallardDuck();
        millard.performFly();
        millard.performQuack();
        System.out.println("----------");
        Duck model = new ModelDuck();
        model.performFly();
        model.performQuack();
        model.setFlyBehavior(new FlyRocketPowered());
        model.performFly();
    }
}
